﻿@model LogOnModel
@{
    ViewBag.Title = "Index";
}
<style>
    .login_icon {
        margin-left:10px;
    }
</style>
<div class="container-fluid" style="width:80%;margin: 0 auto;" >
  <form class="form-horizontal" action="/login/dologin" method="post" >
  <fieldset>
    <legend>登录</legend>
    <div class="control-group">
      <label class="control-label" for="input01">登录名：</label>
      <div class="controls">
        @Html.TextBoxFor(m => m.UserName, new { @class="input-xlarge"})
        <p class="help-block">@Html.ValidationMessageFor(m=>m.UserName)</p>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label" for="input01">登录密码：</label>
      <div class="controls">
        @Html.PasswordFor(m=>m.Password, new { @class="input-xlarge"})
        <p class="help-block">@Html.ValidationMessageFor(m=>m.Password)</p>
      </div>
    </div>
    <div class="control-group">
      <div class="controls">
        @Html.CheckBoxFor(m=>m.RememberMe) <span> 保存状态</span>
        <p class="help-block"></p>
      </div>
    </div>
     <div class="form-actions">
            <button type="submit" class="btn btn-primary">登录</button>
         @ViewBag.msg
      </div>
      <div class="control-group">
      <div class="controls">
        <a href="/login/QQLogin"><span class="login_icon" ><img src="/css/images/login_qq.jpg" /></span></a>
          <a href="/login/QQWeiboLogin"><span class="login_icon"><img src="/css/images/weiboicon24.png" /></span></a>
          <a href="/login/WeiboLogin"><span class="login_icon"><img src="/css/images/sina24.png" /></span></a>
      </div>
    </div>
  </fieldset>
</form>
</div>
@section scripts{
    @Scripts.Render("~/js/jqueryval")
}